package com.chuqiyun.authorization.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chuqiyun.authorization.dao.PaymentDao;
import com.chuqiyun.authorization.entity.Payment;
import com.chuqiyun.authorization.service.PaymentService;
import org.springframework.stereotype.Service;

/**
 * (Payment)表服务实现类
 *
 * @author mryunqi
 * @since 2023-04-22 01:38:45
 */
@Service("paymentService")
public class PaymentServiceImpl extends ServiceImpl<PaymentDao, Payment> implements PaymentService {

    /**
    * @Author: mryunqi
    * @Description: 获取支付宝支付配置信息
    * @DateTime: 2023/4/22 1:47
    * @Return Payment
    */
    @Override
    public Payment getAliPayConfig(){
        QueryWrapper<Payment> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("alias","AliPay");
        return this.getOne(queryWrapper);
    }

}

